# Replace a tag name or character string

Use Tag Substitution to replace the tag names or character strings used for all currently selected graphic objects in a display. Character strings include tag placeholders, expressions, and parts of strings within expressions. When replacing tags, you can use an entire tag name, including folders, or you can replace only one part of it. You cannot use wildcard characters when searching for or replacing tag names.

## To substitute a tag or character string

1. Select the graphic object(s) you intend to do substitutions for. If more than one object is involved you can use the Select tool to draw a selection border around them, or press Ctrl-Click to select each one.
2. In the Edit menu, click Tag Substitution, or right-click the display and select Tag Substitution from the context menu.
3. In the Search For box, type the tag name or character string to be replaced.

   or

   Click the Down arrow to display and select from the list of tags, tag placeholders, and expressions associated with the currently selected graphic object(s).

   or

   Click the Tags browse button (...) to display the Tag Browser dialog box, and select a tag from the tag database.

4. In the Replace With box, type the name of the replacement tag or character string. You can also use the down arrow or Tags browse button (...) to select a tag.
5. Click Replace.

## Options

- Search for

  Type the tag name or character string you want to replace. You cannot use wildcard characters in this box.

- Replace with

  Type the tag name or character string that is to replace what you are searching for. You cannot use wildcard characters in this box.

- Confirm replacements

  Click this check box if you want the Confirm Replacement dialog box to be displayed when you click the Replace button. This lets you replace this occurrence of the tag or string, replace all, or go on to the next one without replacing this one. If you click Replace, the next occurrence is displayed automatically.

  If you do not check the Confirm replacements box, all occurrences of the text in the Search for box are automatically replaced with the text in the Replace with box.

## See also

Confirm tag substitution

Tag placeholders

Context menu

Examples: Tag substitution